﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace ChicagoDealsN
{
    public class BLAdmin
    {
        public bool BLApproveDeal(int id, int status)
        {
            DLAdmin da=new DLAdmin();

            int rowsAffected = da.DLToggleStatus(id, status);
            return (rowsAffected > 0) ? true : false;            
        }

        public DataTable BLGetAllUnApprovedDeals()
        {
            DLAdmin da = new DLAdmin();
            return da.DLGetAllUnApprovedDeals().Tables["AllUnApprovedDealTable"];
        }

    }
}